<?php

namespace App\Models\Traits;

trait HasUserGoldSubsidy
{
    public function unlockedGoldSubsidies()
    {
        return $this->goldCoins()
            ->where('remark', 'unlocked_gold_subsidies')
            ->sum('money');
    }
}
